package com.xnyzc.lhy.order.entity.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author cuixiaojian
 * @since 2019-12-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "OaSysLog对象", description = "")
public class OaSysLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "日志主键")
    @TableId(value = "log_id", type = IdType.INPUT)
    private Long logId;

    @ApiModelProperty(value = "日志信息")
    private String jsonInfo;

    @ApiModelProperty(value = "日志类型( 1 - 2 - 3 - 4 - 5 - 6 - 7 - )")
    private Integer type;

    @ApiModelProperty(value = "日志来源( sys_log - 系统日志 client_sys_log - 客户端系统日志)")
    private String logSource;

    @ApiModelProperty(value = "版本号")
    @Version
    private Long version;

    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "创建人")
    private Long createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "订单号")
    private String orderNo;

    @ApiModelProperty(value = "订单状态")
    private String orderStatus;


    public static final String LOG_ID = "log_id";

    public static final String JSON_INFO = "json_info";

    public static final String TYPE = "type";

    public static final String LOG_SOURCE = "log_source";

    public static final String VERSION = "version";

    public static final String DELETED = "deleted";

    public static final String CREATE_USER = "create_user";

    public static final String CREATE_TIME = "create_time";

}
